package cn.ldf.keepaccounts.entity.pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotBlank;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 房间成员表(Members)表实体类
 *
 * @author 清峰
 * @since 2025-02-17 10:12:34
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Members extends BaseEntity {

    //房间号
    private String roomId;
    //用户openId
    @NotBlank(message = "用户openId不能为空")
    private String openId;
    //用户昵称
    @NotBlank(message = "用户昵称不能为空")
    private String nickname;
    //用户积分
    private Double score;
    //是否已结算
    private boolean settled;
    //加入时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;

}

